package com.xzy.springcloud;


import com.xzy.rule.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;


@SpringBootApplication
//ribbon为客户端负载均衡(这里@RibbonClient表明这个微服务只需要调用这一个服务)
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE",configuration = MyRule.class)


//(这里@RibbonClients表明这个微服务需要调用这多个服务，可以在这里定制调用不同的服务时使用不同的负载均衡策略)
//@RibbonClients(value =
// {@RibbonClient(name = "服务1",configuration = 策略1.class), @RibbonClient(name = "服务2",configuration = 策略2.class)})
public class OrderMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class,args);
    }

}
